package net.wwang.blog.controller.admin;

import net.wwang.blog.pojo.Image;
import net.wwang.blog.commons.global.ResponseResult;
import org.springframework.web.bind.annotation.*;

/**
 * @author WangWei
 * @date 2020/8/14
 */
@RestController
@RequestMapping(value = "/admin/image")
public class ImageApi {
    /**
     * 添加图片设置头像
     * @param image
     * @return
     */
    @PostMapping
    public ResponseResult addImage(@RequestBody Image image) {
        return  null;
    }

    /**
     * 删除图片
     * @param imageId
     * @return
     */
    @DeleteMapping(value = "/{imageId}")
    public  ResponseResult delImage(@PathVariable("imageId")String imageId){
        return  null;
    }

    /**
     * 获取图片列表
     * @param page
     * @param size
     * @return
     */
    @GetMapping(value = "/list")
    public ResponseResult getImageList(@RequestParam("page")int page,@RequestParam("size")int size){
        return null;
    }

    /**
     * 修改
     * @param imageId
     * @return
     */
    @PutMapping(value = "/{imageId}")
    public  ResponseResult updateImage(@PathVariable("imageId")String imageId){
        return  null;
    }

    /**
     * 查询图片
     * @param imageId
     * @return
     */
    @GetMapping(value = "/{imageId}")
    public  ResponseResult getImage(@PathVariable("imageId")String imageId){
        return  null;
    }

}
